<!DOCTYPE html>
<html lang="ko-KR" class="react-fullpage__parents">

<head>
  <meta charset="utf-8">
  <link rel="stylesheet" href="assets/css/index.css" data-n-g="" />
</head>

<body>
  <div class="left_nav">
    <!-- <div class="left_nav_top"></div> -->
    <div class="menu-down">
      <div class="menu-item">
        <div class="m-item" onclick="location.href='customer.html'">
          <img src="assets/svg/profile/icon-fire.svg" alt="">
          <span>딥페이크</span>
        </div>
        <div class="m-item" onclick="location.href='customer.html?type=2'">
          <img src="assets/svg/profile/icon-fire.svg" alt="">
          <span>국산야동</span>
        </div>
        <div class="m-item" onclick="location.href='more.html?type=13'">
          <img src="assets/svg/profile/icon-fire.svg" alt="">
          <span>BJ야동</span>
        </div>
        <div class="m-item" onclick="location.href='more.html?type=10'">
          <img src="assets/svg/profile/icon-heart.svg" alt="">
          <span>AV노모</span>
        </div>
        <div class="m-item" id="history">
          <img src="assets/svg/profile/icon-heart.svg" alt="">
          <span>AV유모</span>
        </div>
        <div class="m-item" onclick="location.href='moneyDetail.html'">
          <img src="assets/svg/profile/icon-heart.svg" alt="">
          <span>AV무수정</span>
        </div>
        <div class="m-item" onclick="location.href='more.html?type=2'">
          <img src="assets/svg/profile/icon-laba.svg" alt="">
          <span>공지사항</span>
        </div>
        <div class="m-item" onclick="location.href='more.html?type=3'">
          <img src="assets/svg/profile/icon-message.svg" alt="">
          <span>문의하기</span>
        </div>
      </div>
    </div>

  </div>
  <style>
    .left_nav {
      overflow-y: auto;
      height: 100vh;
      width: 300px;
      flex: 0 0 300px;
      font-size: 18px;
      user-select: none;
      background-color: #191919;
      padding-top: 10px;
      z-index: 888;
      padding: 12px;
    }

    .m-top,
    .m-top2 {
      cursor: pointer;
      display: flex;
      position: relative;
      justify-content: space-between;
      align-items: center;
    }

    .m-top,
    .m-top2 span {
      color: #FFF;
      font-family: "S-Core Dream";
      font-size: 16px;
      font-style: normal;
      font-weight: 500;
    }

    .menuicon_img {
      display: flex;
      align-items: center;
    }

    .menuicon_img img {
      margin-right: 10px;
      width: 16px;
      height: 16px;
    }

    .m-top,
    .m-top2 svg {
      margin-left: 10px;
    }

    .m-top::before,
    .m-top2::before {
      content: '';
      position: absolute;
      top: 13px;
      width: 3px;
      height: 16px;
      background: #FF8400;

    }

    .m-item {
      border: 1px solid transparent;
      box-sizing: border-box;
      display: flex;
      justify-content: flex-start;
      align-items: center;
      padding: 10px;
      margin-top: 5px;
      background: #120D09;
      border-radius: 4px;
      transition: border-color 0.2s ease;
    }

    .menu-item {
      margin-top: 18px;
    }

    .m-item:hover {
      border-color: #ff8400;
      box-sizing: border-box;
    }



    .m-item img {
      width: 24px;
      height: 24px;
      margin-right: 10px;
    }

    .m-item span {
      box-sizing: border-box;

      color: #FFF;
      text-align: center;
      font-family: "S-Core Dream";
      font-size: 16px;
      font-style: normal;
      font-weight: 500;
    }

    .menu-sport {
      margin-top: 25px;
    }

    .left_nav_top {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 2px;
    }

    /* Tab 标签样式 */
    .tab-tabs {
      display: flex;
      /* border-bottom: 1px solid #e0e0e0; */
      margin-bottom: 12px;
    }

    .tab-tab {
      padding: 8px 20px;
      cursor: pointer;
      border-bottom: 3px solid transparent;
      transition: all 0.3s ease;
      font-weight: 500;
      color: #fff;
    }

    /* 激活的标签样式 */
    .tab-tab.active {
      border-bottom-color: #ff8400;
      color: #ff8400;
    }

    .tab-tab:hover:not(.active) {
      color: #ff8400;
      /* background-color: #f5f5f5; */
    }

    .left_nav_top_item {
      /* font-family: "S-Core Dream";
      font-size: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      height: 30px; */
      background: #373737;
      cursor: pointer;
    }

    .left_nav_top_item.nav_one_row {
      gap: 2px;
      height: 47px;
      line-height: 47px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(180deg, #FF8400 2.5%, #FF8400 97.5%);
      color: #493700;
      font-weight: 600;
    }

    .left_nav_gif {
      display: flex;
      gap: 3px;
      margin-top: 3px;
    }

    .left_nav_gif img {
      box-sizing: border-box;
      border: 2px solid #FF8400;
      flex: 0 0 calc(50% - 1.5px);
      width: calc(50% - 1.5px);
      cursor: pointer;
    }

    .left_nav_search {
      padding: 8px;
    }

    .left_nav_search_input {
      display: flex;
      gap: 4px;
      align-items: center;
    }

    .left_nav_search_input img {
      cursor: pointer;
    }


    .left_nav_search_input input {
      flex: 1;
      height: 30px;
      line-height: 22px;
      font-weight: 300;
      border-radius: 4px;
      background: #121924;
      border: 1px solid #ff8400;
      font-size: 12px;
    }

    .seach-btn {
      width: 28px;
      height: 28px;
      flex-shrink: 0;
      border-radius: 4px;
      background: linear-gradient(91deg, #FFDA00 1.13%, #FFB700 99.78%);
      text-align: center;
      line-height: 28px;
    }

    .left_nav_search_input input::placeholder {
      color: #858585;
      text-align: left;
      font-family: "S-Core Dream";
      font-size: 12px;
      font-weight: 400;
      line-height: 22px;
    }

    .left_nav_list {
      font-size: 14px;
    }

    .left_nav_list_tit {
      height: 32px;
      display: flex;
      align-items: center;
      gap: 5px;
      /* background: linear-gradient(180deg, #1A1A1A 0%, #323232 93.75%); */
      padding: 7px 8px;
      margin: 1px 0;
    }

    .left_nav_list_tit img {
      width: 18px;
      height: 18px;
    }

    .left_nav_list_item {
      min-height: 30px;
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 0 5px;
      padding: 10px 8px;
      /* background: #373737; */
      /* box-shadow: 0px 1px 0px 0px rgba(255, 255, 255, 0.13) inset; */
      cursor: pointer;

    }

    .left_nav_list_item_label {
      background-size: 100% 200%;
      background-position: bottom;
      transition: background-position 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .left_nav_list_item_chil {
      flex: 0 0 100%;
      height: 0;
      overflow: hidden;
      transition: all 0.5s;
    }

    .left_nav_list_item_chil_item {
      display: flex;
      align-items: center;
      gap: 5px;
      cursor: pointer;
      transition: all 0.5s;
      padding-left: 16px !important;
    }

    .left_nav_top_item span {
      font-size: 12px;
      display: block;
      height: 41px;
      line-height: 41px;
      text-align: center;
      /* margin-top: 1px; */
      color: #fff;
      background-size: 100% 100%;
      /* border-bottom: 1px solid #1c1717; */
      /* background: linear-gradient(180deg, #24386d 96%, #0c2053); */
      /* box-shadow: inset 0px 1px 0px rgba(255, 255, 255, 0.06), 0px 1px 3px rgba(0, 0, 0, 0.1); */
    }

    .left_nav .nav_one_row:hover {
      background: #FF8400;
      color: #fff;
    }

    .nav_one_row span:hover {
      background: none;
    }

    .left_nav_top_item :hover {
      background-size: 100% 100%;
      background: #6d6d6d;
      color: #fff;
    }

    .left_nav_list_item.open .left_nav_list_item_chil {
      height: auto;
      padding-top: 5px;
    }

    .left_nav_list_item.open .left_nav_list_item_chil .left_nav_list_item_chil_item {
      padding: 5px 0;
    }

    .left_nav_list_item_chil_item_label:hover {
      color: #FEE167;
    }

    .left_nav_list_item_chil_item:hover {
      background: linear-gradient(180deg, #2d353c, #222);
    }

    .left_nav_list_item img {
      width: 24px;
      height: 24px;
    }

    .left_nav_list_item_label:hover {
      background: linear-gradient(to top, #111 4.1%, #FF8400 52%, #060606 6%);
      background-size: 100% 200%;
      background-position: top;

    }

    /* .left_nav_list_item:hover {
      background: linear-gradient(180deg, var(--color-start), var(--color-end));
      background-size: 100% 200%;
      background-position: top;
    } */

    .left_nav_list_item_label,
    .left_nav_list_item_chil_item_label {
      flex: 1;
    }

    .new_list_item {
      display: flex;
      align-items: center;
      padding: 8px;
      background: #373737;
      box-shadow: 0px 1px 0px 0px rgba(255, 255, 255, 0.13) inset;
      height: 62px;
      font-size: 14px;
      gap: 10px;
      cursor: pointer;
    }

    .new_list_item_c {
      width: 26px;
      height: 26px;
    }

    .new_list_item_r {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      height: 100%;
    }

    .new_list_item_r_row {
      display: flex;
      gap: 6px;
      align-items: center;
    }

    .new_list_item_r_row img {
      width: 20px;
      height: 20px;
    }

    .left_nav_m_menu {
      display: none;
    }

    @media only screen and (max-width: 768px) {
      .left_nav {
        position: absolute;
        left: -300px;
        flex: 0;
        transition: all 0.5s;
        padding-top: 0;
      }

      .menu-item {
        margin-top: 2px;
      }

      .left_nav.open {
        left: 0;
        top: 43px;
      }

      .left_nav_m_menu {
        display: flex;
        align-items: center;
        gap: 18px;
        position: fixed;
        top: 15px;
        left: 8px;
      }

      .left_nav_m_menu img {
        height: 30px;
        width: 30px;
      }
    }
  </style>
  <script>
    const modalData = [
      '<p style="padding: 10px 0;font-size: 16px;">페이백 이벤트</p> <p style="padding-bottom: 10px;">페이백은 <span style="color:#f1c40f">지급요일만 신청 가능</span>합니다.</p> <p>자세한 내용은 이벤트 게시판을</p> <p>참조해 주시길 부탁드립니다.</p>'
    ]
    const lNavList = [
      { class: 'nav_one_row', icon: 'l_icon1.svg', label: '충전(계좌문의)', path: 'customer.html' },
      { class: 'nav_one_row', icon: 'l_icon2.svg', label: '환전', path: 'customer.html?type=2' },
      { class: 'nav_one_row', icon: 'l_icon3.svg', label: '1:1고객센터', path: 'customerMemo.html' },
      { label: '국내형 스포츠', path: 'sports.html' },
      { label: '해외형 스포츠', path: 'sportsKor.html' },
      { label: '인플레이', path: 'sportsLive.html' },
      { label: 'E-스포츠', path: 'E-sports.html' },
      // { label: '가상스포츠', path: 'game.html' },
      // { label: '프리매치', path: 'sportsKor.html' },
      // { label: '미니게임', path: 'minigame.html' },
      // { label: '파워볼', path: 'minigame.html' },
      { label: '카지노', path: 'casino.html' },
      { label: '슬롯', path: 'slot.html' },
      // { label: '룰렛', path: 'roulette.html' },
      { label: '페이백', callback () { addModal(modalData[0]) } },
      { label: '머니내역', path: 'moneyDetail.html' },
      { label: '배팅내역', path: 'customerBet.html' },
      { label: '출석부', path: 'attendance.html' },
      { label: '공지/규정', path: 'customerEvent2.html' },
      { label: '이벤트', path: 'customerEvent.html' },
    ]
    const topDom = $('.left_nav_top')
    lNavList.forEach(ele => {
      const item = $(`
            <div class="left_nav_top_item ${ele.class ? ele.class : ''}" ${ele.path ? `data-url="${ele.path}"` : ''} ${ele.function ? `onclick='${ele.function}'` : ''}>
            ${ele.icon ? `<img src="assets/svg/leftNav/${ele.icon}" alt="">` : ''}
                <span>${ele.label}</span>
            </div>`)
      topDom.append(item)
      if (ele.callback) {
        item.click(ele.callback);
      }
    })
    const popular = [
      { icon: 'l_img1', label: '즐겨찾기', path: '' },
      { icon: 'l_img2', label: '축구', num: 0, children: [] },
      { icon: 'l_img3', label: '농구', num: 0, children: [] },
      { icon: 'l_img4', label: '야구', num: 0, children: [] },
      { icon: 'l_img5', label: '배구', num: 0, children: [] },
      { icon: 'l_img6', label: '아이스 하키', num: 0, children: [] },
      { icon: 'l_img7', label: '테니스', num: 0, children: [] },
      { icon: 'l_img8', label: '핸드볼', num: 0, children: [] },
      { icon: 'l_img9', label: '미식축구', num: 0, children: [] },
      { icon: 'l_img10', label: '크리켓', num: 0, children: [] },
      { icon: 'l_img11', label: '탁구', num: 0, children: [] },
      { icon: 'l_img12', label: 'MMA', num: 0, children: [] },
      { icon: 'l_img13', label: '권투', num: 0, children: [] },
      { icon: 'l_img14', label: '다트', num: 0, children: [] },
      { icon: 'l_img15', label: 'E-스포츠', num: 0, children: [] },
    ]
    const popularDom = $('.popular_list');
    popular.forEach(ele => {
      popularDom.append(`
            <div class="left_nav_list_item">
                <img src="assets/img/leftNav/${ele.icon}.webp" alt="">
                <span class="left_nav_list_item_label">${ele.label}</span>
            ${ele.num || ele.num === 0 ? `<span class="left_nav_list_item_num">${ele.num}</span>` : ''}
                <div class="left_nav_list_item_chil">
                    <div class="left_nav_list_item_chil_item">
                        <img src="assets/img/leftNav/BOL.webp" alt="">
                        <span class="left_nav_list_item_chil_item_label">볼리비아</span>
                        <span class="left_nav_list_item_chil_item_num">0</span>
                    </div>
                    <div class="left_nav_list_item_chil_item">
                        <img src="assets/img/leftNav/URY.webp" alt="">
                        <span class="left_nav_list_item_chil_item_label">우루과이</span>
                        <span class="left_nav_list_item_chil_item_num">0</span>
                    </div>
                </div>
            </div>
            `)
    })
    const newList = [
      { time: '10:30', img: 'new1', value: [{ icon: 'new_icon1', label: '울산 현대모비스' }, { icon: 'new_icon2', label: '대구가스공사' }], path: '' },
      { time: '10:30', img: 'new2', value: [{ icon: 'new_icon3', label: '에드먼턴 오일러스' }, { icon: 'new_icon4', label: 'LA 킹스' }], path: '' },
      { time: '10:30', img: 'new3', value: [{ icon: 'new_icon1', label: 'Titans' }, { icon: 'new_icon1', label: 'Tornado' }], path: '' },
      { time: '10:30', img: 'new3', value: [{ icon: 'new_icon2', label: 'Alliance' }, { icon: 'new_icon2', label: 'Payp' }], path: '' },
      { time: '10:30', img: 'new3', value: [{ icon: 'new_icon3', label: 'Lions' }, { icon: 'new_icon3', label: 'Legion' }], path: '' },
    ]
    const newDom = $('.new_list');
    newList.forEach(ele => {
      newDom.append(`
            <div class="new_list_item">
                <div class="new_list_item_t">${ele.time}</div>
                <div class="new_list_item_c">
                    <img src="assets/img/leftNav/${ele.img}.webp" alt="">
                </div>
                <div class="new_list_item_r">
                    <div class="new_list_item_r_row">
                        <img src="assets/img/leftNav/${ele.value[0].icon}.webp" alt="">
                        <span>${ele.value[0].label}</span>
                    </div>
                    <div class="new_list_item_r_row">
                        <img src="assets/img/leftNav/${ele.value[1].icon}.webp" alt="">
                        <span>${ele.value[1].label}</span>
                    </div>
                </div>
            </div>
            `)
    })
    $('.left_nav_list_item').click(function (event) {
      if ($(event.target).closest('.left_nav_list_item_chil').length === 0) {
        if ($(this).hasClass('open')) {
          $(this).removeClass('open')
        } else {
          $('.left_nav_list_item').removeClass('open')
          $(this).toggleClass('open')
        }
      }
    })
    $('#openLeft').click(function () {
      $('.left_nav').toggleClass('open')
    })
    $('#refresh').click(function () {
      location.reload()
    })
    function addModal (dom) {
      $('body').append(`
            <div class="body_modal">
                <div class="body_modal_inner">
                    <img class="body_modal_logo" src="assets/img/logo.webp" alt="">
                    <img id="body_modal_close" src="assets/svg/header/close.svg" alt="">
                </div>
            </div>
            `)
      $('.body_modal_inner').append(dom)
      $('#body_modal_close').click(function () {
        $('.body_modal').remove()
      })
    }
    $('.left_nav_top_item').click(function () {
      if ($(this).data('url')) {
        window.location.href = $(this).data('url');
      }
    })
    $('.left_nav_list_item_chil_item').click(function () {
      window.location.href = 'sports.html';
    })
    $('.m-top').click(function () {
      const $menu = $('.menu-item');
      // 判断菜单当前是否可见
      if ($menu.is(':visible')) {
        // 可见则隐藏
        $menu.hide();
        $('.icon-down svg').css('transform', 'rotate(180deg)')
      } else {
        $menu.show();
        $('.icon-down svg').css('transform', 'rotate(0deg)')

      }
    });
    $('.m-top2').click(function () {
      const $menu = $('.left_nav_search');
      const $menu2 = $('.tab-menu');
      const $menu3 = $('.msport-item');
      // 判断菜单当前是否可见
      if ($menu.is(':visible')) {
        // 可见则隐藏
        $menu.hide();
        $menu2.hide();
        $menu3.hide();
        $('.icon-down2 svg').css('transform', 'rotate(180deg)')
      } else {
        $menu.show();
        $menu2.show();
        $menu3.show();
        $('.icon-down2 svg').css('transform', 'rotate(0deg)')

      }
    });
    $('#history').on('click', function () {
      const width = window.innerWidth;
      if (width < 768) {
        window.location.href = 'history.html';
      } else {
        window.location.href = 'more.html?type=5';
      }
    })
    $('#ranking').on('click', function () {
      const width = window.innerWidth;
      if (width < 768) {
        window.location.href = 'ranking.html';
      } else {
        window.location.href = 'more.html?type=6';
      }
    })
  </script>
</body>

</html>